package com.buddy.learn.spring.framework.beans;

public class BBeanWrapper {

    private Object wappedInstance;
    private Class<?> wrappedClass;

    public BBeanWrapper(Object wrappedInstance) {
        this.wappedInstance = wappedInstance;
    }

    //单例
    public Object getWrappedInstance() {
        return this.wappedInstance;
    }

    //非单例
    //返回代理以后的Class/
    //可能会是这个$Proxy0
    public Class<?> getWrappedClass() {
        return this.wappedInstance.getClass();
    }
}
